using JTZY.Model.Financial.Dto;
using JTZY.Model.Financial;

namespace JTZY.Service.Financial.IFinancialService
{
    /// <summary>
    /// 提现记录service接口
    /// </summary>
    public interface ICorecmsusertocashService : IBaseService<Corecmsusertocash>
    {
        PagedInfo<CorecmsusertocashDto> GetList(CorecmsusertocashQueryDto parm);

        CorecmsusertocashDto GetInfo(int Id);


        Corecmsusertocash AddCorecmsusertocash(Corecmsusertocash parm);
        int UpdateCorecmsusertocash(Corecmsusertocash parm);

        Task<WebApiCallBack> Tocash(long userId, CorecmsusertocashDto dto);
        PagedInfo<CorecmsusertocashDto> ExportList(CorecmsusertocashQueryDto parm);

        /// <summary>
        /// 获取最后一笔提现记录
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        CorecmsusertocashDto GetLastCashInfo(long userId);
    }
}
